﻿using System;
using System.Collections.Generic;
using System.Web.UI;
using SouthernLand.Common.BOL.Articles;

namespace SouthernLand.Controls
{
    public partial class ArticlesTop : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<Article> obj = Article.GetTopOnBanner();
            if (obj != null && obj.Count > 0)
            {
                rptArticles.DataSource = obj;
                rptArticles.DataBind();
            }
        }

        public string CheckImage(string imageUrl)
        {
            if (imageUrl.Trim().Length <= 3)
                return "Hidden";
            else
                return "";
        }
    }
}